.class public Lcom/android/apps/pros/LocalCService;
.super Landroid/app/Service;
.source "LocalCService.java"


# instance fields
.field private a:Z


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Landroid/app/Service;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/android/apps/pros/LocalCService;->a:Z

    return-void
.end method

.method private b(Landroid/content/Context;)V
    .locals 2

    .line 1
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    const-string v1, "android.intent.action.SCREEN_ON"

    .line 2
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    const-string v1, "android.net.conn.CONNECTIVITY_CHANGE"

    .line 3
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 4
    new-instance v1, Lcom/android/apps/pros/LocalCService$a;

    invoke-direct {v1, p0}, Lcom/android/apps/pros/LocalCService$a;-><init>(Lcom/android/apps/pros/LocalCService;)V

    invoke-virtual {p1, v1, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    return-void
.end method

.method private c(Landroid/content/Context;)V
    .locals 0

    .line 1
    invoke-static {p1}, Lcom/android/apps/pros/b;->c(Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method a(Landroid/content/Context;)V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/android/apps/pros/LocalCService;->a:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/android/apps/pros/LocalCService;->a:Z

    .line 3
    invoke-direct {p0, p1}, Lcom/android/apps/pros/LocalCService;->b(Landroid/content/Context;)V

    .line 4
    invoke-direct {p0, p1}, Lcom/android/apps/pros/LocalCService;->c(Landroid/content/Context;)V

    :cond_0
    return-void
.end method

.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
    .locals 0

    const/4 p1, 0x0

    return-object p1
.end method

.method public onStartCommand(Landroid/content/Intent;II)I
    .locals 0

    .line 1
    invoke-virtual {p0, p0}, Lcom/android/apps/pros/LocalCService;->a(Landroid/content/Context;)V

    const/4 p1, 0x1

    return p1
.end method
